package vista;
import java.awt.BorderLayout;
import java.awt.event.ActionListener;

import javax.swing.JButton;
import javax.swing.JLabel;
import javax.swing.JPanel;

import javax.swing.WindowConstants;
import javax.swing.SwingUtilities;


	public class JFNivel extends javax.swing.JFrame {
	private JPanel pnlNivel;
	private JButton btnBasico;
	private JLabel lbl1;
	private JButton btnAvanzado;
	private JButton btnIntermedio;
	
	
	public JFNivel() {
		super();
		initGUI();
	}
	
	private void initGUI() {
		try {
			setDefaultCloseOperation(WindowConstants.DISPOSE_ON_CLOSE);
			{
				pnlNivel = new JPanel();
				getContentPane().add(pnlNivel, BorderLayout.CENTER);
				pnlNivel.setLayout(null);
				{
					btnBasico = new JButton();
					pnlNivel.add(btnBasico);
					btnBasico.setText("Básico");
					btnBasico.setBounds(92, 81, 67, 22);
					btnBasico.setSize(100, 30);
					btnBasico.setFont(new java.awt.Font("Purisa",0,14));
				}
				{
					btnIntermedio = new JButton();
					pnlNivel.add(btnIntermedio);
					btnIntermedio.setText("Intermedio");
					btnIntermedio.setBounds(92, 127, 100, 30);
					btnIntermedio.setFont(new java.awt.Font("Purisa",0,14));
				}
				{
					btnAvanzado = new JButton();
					pnlNivel.add(btnAvanzado);
					btnAvanzado.setText("Avanzado");
					btnAvanzado.setBounds(92, 173, 100, 30);
					btnAvanzado.setFont(new java.awt.Font("Purisa",0,14));
				}
				{
					lbl1 = new JLabel();
					pnlNivel.add(lbl1);
					lbl1.setText("Seleccione un Nivel:");
					lbl1.setBounds(63, 44, 180, 15);
					lbl1.setFont(new java.awt.Font("Purisa",0,14));
				}
			}
			pack();
			this.setSize(289, 270);
		} catch (Exception e) {
		    //add your error handling code here
			e.printStackTrace();
		}
	}
	
	public void addListener(ActionListener actionListener) {
		btnBasico.addActionListener(actionListener);
		btnIntermedio.addActionListener(actionListener);
		btnAvanzado.addActionListener(actionListener);
	}
}
